//
//  Small_MusicCD03_02.swift
//  TimMusic
//
//  Created by nkl on 2024/10/21.
//

import AppIntents
import Foundation
import SwiftUI

struct Small_MusicCD03_02: View {
    var body: some View {
        ZStack {
            Image("small_03_bg").resizable().ignoresSafeArea()
            VStack {
                ZStack {
                    Color(hex: "#111111")

                    VStack {
                        HStack {
                            Spacer()
                            Image("ic_placeholder").resizable()
                                .frame(width: 43, height: 43)
                                .cornerRadius(8)

                            VStack(alignment: .leading) {
                                Text("asd").font(.system(size: 14).bold()).foregroundColor(.white)
                                Text("asd").font(.system(size: 10)).foregroundColor(.white)
                            }
                            Spacer()
                        }
                    }
                }
                .cornerRadius(12)
                .frame(height: 52)
                .padding(.horizontal, 10)

                ZStack {
                    Color(hex: "#212121")
                    Image("ic_widget_play")
                }
                .frame(width: 46, height: 46)
                .overlay(
                    RoundedRectangle(cornerRadius: 8)
                        .stroke(Color.black, lineWidth: 1) // 设置边框颜色和宽度
                )
                .modifier(AppClickModifier(urlString: "timMusic://apptest"))
            }
        }
    }
}

#Preview {
    Small_MusicCD03_02()
}
